import React, { Context } from 'react'
import { IMessage } from './interface/interface'

export const createContext = <T extends object>(defaultValue: T): Context<T> => React.createContext(defaultValue)

export const messageCenterContext = createContext<IMessage>({})
